with statement to open file